home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
mac
/
Shout3Ddemo
/
S3D_2E1.exe
/
Shout3d_runtime
/
codebase
/
models
/
affectedLightTest.wrl
next >
Wrap
Text File
|
2000-11-08
|
4KB
|
165 lines
#VRML V2.0 utf8
Background {
color .5 .5 1
}
DirectionalLight {
intensity 0.3
}
DEF MyLight DirectionalLight {
intensity 0.9
}
Viewpoint {
position 0 -2 10
}
DEF Box1 Transform {
translation -3 0 0
children [
Shape {
appearance Appearance {
material Material { diffuseColor 1 0 0 }
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-1 -1 1
-1 1 1
1 1 1
1 -1 1
-1 -1 -1
-1 1 -1
1 1 -1
1 -1 -1
]
}
coordIndex [
0 3 1 -1
3 2 1 -1
3 7 2 -1
7 6 2 -1
7 4 6 -1
4 5 6 -1
4 0 5 -1
0 1 5 -1
1 2 5 -1
2 6 5 -1
0 4 3 -1
4 7 3 -1
]
}
}
]
}
DEF Box2 Transform {
children [
Shape {
appearance Appearance {
material Material { diffuseColor 0 1 0 }
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-1 -1 1
-1 1 1
1 1 1
1 -1 1
-1 -1 -1
-1 1 -1
1 1 -1
1 -1 -1
]
}
coordIndex [
0 3 1 -1
3 2 1 -1
3 7 2 -1
7 6 2 -1
7 4 6 -1
4 5 6 -1
4 0 5 -1
0 1 5 -1
1 2 5 -1
2 6 5 -1
0 4 3 -1
4 7 3 -1
]
}
}
]
}
DEF Box3 Transform {
translation 3 0 0
children [
Shape {
appearance Appearance {
material Material { diffuseColor 0 0 1 }
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-1 -1 1
-1 1 1
1 1 1
1 -1 1
-1 -1 -1
-1 1 -1
1 1 -1
1 -1 -1
]
}
coordIndex [
0 3 1 -1
3 2 1 -1
3 7 2 -1
7 6 2 -1
7 4 6 -1
4 5 6 -1
4 0 5 -1
0 1 5 -1
1 2 5 -1
2 6 5 -1
0 4 3 -1
4 7 3 -1
]
}
}
]
}
DEF BottomBar Transform {
translation 0 -3 0
scale 4 .5 0
children [
Shape {
appearance Appearance {
material Material { diffuseColor .8 .8 .8 }
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-1 -1 1
-1 1 1
1 1 1
1 -1 1
-1 -1 -1
-1 1 -1
1 1 -1
1 -1 -1
]
}
coordIndex [
0 3 1 -1
3 2 1 -1
3 7 2 -1
7 6 2 -1
7 4 6 -1
4 5 6 -1
4 0 5 -1
0 1 5 -1
1 2 5 -1
2 6 5 -1
0 4 3 -1
4 7 3 -1
]
}
}
]
}